<%-- 
    Document   : HomeContent
    Created on : Aug 28, 2011, 12:22:19 PM
    Author     : NHAnh - nhanh@fit.hcmus.edu.vn
--%>

<%@page import="model.pojo.KhachHang"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<table width="100%">
    <tr>
        <td>
            <a href="HomeController?Action=View">Trang nhất</a>&nbsp; | 
            <%if (session.getAttribute("KhachHang") == null) {

            %>
            <a href="LoginController?Action=View">Đăng nhập</a> 
            <%} else {
                KhachHang kh = (KhachHang) session.getAttribute("KhachHang");
            %>

            Xin chào <%=kh.getHoVaTen()%> &nbsp;  <a href="LoginController?Action=Logout">Đăng xuất</a>
            <%}%>
        </td>
    </tr>
</table>
